﻿using System;
using System.Windows.Media;

namespace MVVM_CAD.Model
{
    public class CustomPoint : IPoint
    {
        public double X { get; set; }
        public double Y { get; set; }
        public bool IsVertex { get; set; }
        public Color Color { get; set; }        
        public string Presenter
        {
            get { return string.Concat(X, " , ", Y); }
        }


        
        public CustomPoint(double x, double y, Color fromRgb)
        {
            X = x;
            Y = y;
            Color = fromRgb;
        }

        public CustomPoint(double x, double y) : this(x, y, Colors.Black)
        {
        }

        public bool EqualCoordinates(IPoint other)
        {
            return other.X.Equals(X) && other.Y.Equals(Y);
        }
    }
}
